import React from "react";
import { Redirect, Route, Switch } from "react-router-dom";
import NotFound from "./404";
import Flutter from "./Flutter";
import Javascript from "./Javascript";

export default function () {
  return (
    <Switch>
      <Redirect from="/" exact to="/javascript" />
      <Route path="/javascript" render={Javascript} />
      <Route path="/flutter" render={Flutter} />
      <NotFound />
    </Switch>
  );
}
